﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Wuther.Infrastructure.Organizations
{
    /// <summary>
    /// 部门信息
    /// </summary>
    [Comment("部门信息")]
    public class Organization : FullAuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        [Comment("父级ID")]
        public virtual Guid? ParentId { get; internal set; }

        /// <summary>
        /// 编号
        /// </summary>
        [Comment("编码")]
        public virtual string Code { get; internal set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        [Comment("显示名称")]
        public virtual string DisplayName { get; set; }
        /// <summary>
        /// 行政区划
        /// </summary>
        [Comment("行政区划")]
        public string AreaCode { get; set; }
        /// <summary>
        /// 负责人ID
        /// </summary>
        [Comment("负责人ID")]
        public Guid UserId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Comment("排序")]
        public int Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注")]
        public string Remark { get; set; }
    }
}
